Relational database access system using semantically dynamic objects

ABSTRACT

A relational database access system and method provides a new data representation and a query technique which allows information system end users to access (query) relational databases without knowing the relational structure or the structure query language (SQL). The present invention utilizes semantically dynamic objects.

BACKGROUND OF THE INVENTION

[0001] The present invention relates to information processing and more particularly to database access systems and methods such as a relational database access system and method.

[0002] Relational database systems are well known in the prior art, and include tabular structures and structured query languages used for database queries. To aid in an understanding of the present invention, a glossary of terms is included hereinbelow.

[0003] Relational database technology has made possible an independence between the way data is physically stored and the way it can be handled logically. Relational technology has been widely accepted in business, industry and engineering as valuable for storing data.

[0004] Heretofore, most of the advances provided by relational databases has been limited to those users who understand the mathematical principles of relational algebra. Querying a relational database implies a good knowledge of Structured Query Language (SQL) and a good understanding of relational data structures.

[0005] Numerous information systems that hide the complexity of SQL and relational databases are based on predefined query techniques. Using those solutions, users can specify parameters in order to add some conditions, but they can never change the meaning of the result. The semantic components of the SQL language (joins and group functions) are stored in the body of the predefined query. When an MIS staff builds an infocenter solution they create user-dedicated tables, relational views or predefined SQL queries accessible by menu triggers.

[0006] Usually, if end-users want to change the meaning of a query, either they have to ask the MIS staff to program another query or they have to program the SQL commands themselves. If they do so they will encounter many problems:

[0007] the syntax of non procedural structured query language (in particular SQL) is complex.

[0008] the data structure is not adapted to the users' everyday work. Relational databases store information as well as relational data such as keys.

[0009] is the SQL query semantically correct? Although a query is syntaxically correct, results are not always reliable. SQL as a programmer language does not check the semantic of a query. A more concrete example is the SQL language producing totally a meaningless cross product. This represents a major limitation for end-user access to relational data.

[0010] Glossary

[0011] The following is a glossary of some of the terms used in these technologies.

[0012] Data: Raw facts or values which are physically recorded and which can be extracted and objectively verified

[0013] Information: Anything learned from data, the “meaning” of the data.

[0014] Value: An amount of worth

[0015] Database: A computerized collection of data

[0016] Relational Database: A database in which all data are stored and organized in tables and in which each field containing a datum is equally accessible.

[0017] Relational Database Management System (RDBMS): The software environment supporting a Relational database.

[0018] Relational Database Terms:

[0019] Record: A collection of fields; the basic accessible element of a file.

[0020] Field: An elemental entity of a record.

[0021] Relation: An orderly arrangement of data in columns and rows; a table.

[0022] Attribute: A column of a relation, a field of a Tuple.

[0023] Tuple: A record of a relational database; one line or row of a table or relation.

[0024] Relational Structure: Set of Relations definitions

[0025] Business Objects specific Terms:

[0026] Infocenter: Environment in which the Users, without any technical knowledge, have “self-service” access to the information system, in a manner controlled by MIS staff.

[0027] Universe: An easy-to-understand partial or total representation of the database, designed for a particular application or group of users.

[0028] Business Objects: Objects corresponding to concepts close to the user's everyday business. They are defined by the Infocenter Manager and are the basic elements of a Universe.

[0029] Context: Set of logical equations linking tables (joins) providing a closed graph of table.

SUMMARY OF THE INVENTION

[0030] It is an object of the present invention to provide a new data representation and a new query technique which allow information systems end-users to access (query) database systems such as relational databases without knowing the relational structure or the SQL language. The present invention introduces the notion of semantically dynamic objects.

[0031] Other objects, features and advantages of the present invention will become apparent from the following detailed description when taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention:

[0033]FIG. 1 depicts clicking on a Create Query Option.

[0034]FIG. 2 depicts a User entering a Query Name.

[0035]FIG. 3 depicts a technique used to construct queries which allows an end-user to define a question using point-and-click methods.

[0036]FIG. 4 depicts a Business Objects Selector window.

[0037]FIG. 5 depicts Customers class windows containing all the Objects related to a customer.

[0038]FIG. 6 depicts a specific help window.

[0039]FIG. 7 depicts the first cell of the Result Objects window.

[0040]FIG. 8 depicts a List of Objects window.

[0041]FIG. 9 depicts a Misc class window.

[0042]FIG. 10 depicts specific help about the Sales Revenue Object.

[0043]FIG. 11 depicts two selected Objects. Their linear association gives a meaning to each of them, the desired information is “the Sales revenue by customer”.

[0044]FIG. 12 depicts a Condition Window.

[0045]FIG. 13 depicts a List of Objects window.

[0046]FIG. 14 depicts putting a Condition on an Object.

[0047]FIG. 15 depicts Query Engine provides all the logical operator used by SQL, in this particular example lets select the “Equal to” operator.

[0048]FIG. 16 depicts a comparison of objects—“constant” type is here selected.

[0049]FIG. 17 depicts: The condition is “City” equals to “Malibu”.

[0050]FIG. 18 depicts the Sorts window.

[0051]FIG. 19 depicts the activated Sorts window.

[0052]FIG. 20 depicts sorting an object.

[0053]FIG. 21 depicts order of sort, i.e., ascending or descending order.

[0054]FIG. 22 depicts the final screen of the query definition.

[0055]FIG. 23 depicts the SQL equivalent to the Query On Business Objects definition and prompt the user to execute the query.

[0056]FIG. 24 depicts a display of the result.

[0057]FIG. 25 depicts the SQL command generated automatically by a query engine according to the present invention.

[0058]FIG. 26 depicts another query definition screen.

[0059]FIG. 27 depicts a display of the answer of the query.

[0060]FIG. 28 depicts the SQL command generated by the Query Engine to translated the question.

[0061]FIG. 29 depicts a Universe of Objects with total or partial representation of a database for a particular group of users or for a particular function in the present invention.

[0062]FIG. 30 depicts Customer Object as compared to the SQL equivalent.

[0063]FIG. 31 depicts Sales Revenue Object with its corresponding SQL equivalent.

[0064]FIG. 32 depicts the Query on Business Objects aspects of being semantically dynamic as shown by query sales revenue by customer as contrasted with the SQL equivalent.

[0065]FIG. 33 depicts the Query on Business Objects aspects of being semantically dynamic as shown by query sales revenue by item as contrasted with the SQL equivalent.

[0066]FIG. 34 depicts the RDBMS access modes.

[0067]FIG. 35 depicts local data analysis according to the present invention.

[0068]FIG. 36 depicts the user friendly interface aspects according to the present invention.

[0069]FIG. 37 depicts distribution of universes and objects according to the present invention.

[0070]FIG. 38 depicts distributions of queries, reports, graphs and the like according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0071] Reference will now be made in detail to the preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to those embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims.

[0072] In one preferred embodiment, the present invention is a software implementation using client/server architecture for providing improved access to a relational database. The present invention can be utilized in a PC (personal computer) environment, such as is manufactured by International Business Machines Corporation, Apple Corporation, and the like. In addition, all interaction is possible using a “mouse” or the equivalent, and it is to be understood that the following detailed description of the various uses of the improved database accessing capability of the present invention could be utilizing such a PC-type configuration.

[0073] A User Object Based Representation of Data

[0074] Instead of presenting a user with data organized in a computer-oriented way (columns, rows, tables, joins), the user sees information through terms that he is familiar with in his daily business. These terms, or elements of information, which compose the vocabulary of the end-user, are called “business objects”.

[0075] A set of objects composing a representation of data for a group of users sharing the same vocabulary is called a ‘universe”. This set of Objects has no particular hierarchy nor structure, and there is no inheritance among such Objects.

[0076] This data representation frees the user from the requirement of knowledge and the understanding of the relational structure.

[0077] The Query Technique

[0078] This query technique is called the Query on Business Objects. This technique frees the users from knowing the syntax of any particular language. The meaning of a specific query is specified through a linear association of objects.

[0079] The present invention features an automatic generation of SQL statements.

[0080] In one preferred embodiment, the present invention includes software code (called the Query Engine) which generates SQL statements to query the relational database kernel of interest. This engine is able to generate not only the SELECT and the WHERE clause of the SQL sentence but also the FROM, the HAVING, the ORDER BY and the GROUP BY clause. Another feature of the Query Engine is its ability to generate the list of joins involved in the query. In order to do so, the present invention introduces the notion of contexts.

[0081] The Query Engine provides an automatic handling of group functions and relations which are the semantic components of SQL queries.

[0082] Detailed Description of Specific Embodiments

[0083] According to the present invention, several aspects are introduced to the field of relational databases. An understanding of these terms will be helpful in the appreciation of this invention.

[0084] Business Objects Universes.

[0085] The present invention implements a semantically dynamic tabular representation of data.

[0086] Universe

[0087] A Universe is an easy-to-understand partial or total representation of the database, designed for a particular application or group of users.

[0088] Although data is stored in a single database, different users may have different views on this data. Users manipulate a vocabulary specific to their group of users.

[0089] The vocabularies of the different groups of users can differ in several ways:

[0090] words can differ.

[0091] the same word can refer to different types of information. For example, for a sales manager, the word “Customer” is used to designate the name and phone number of a person, but for a financial officer, the word “customer” may designate a company name and its bank reference.

[0092] the same words can refer to the same type of information, but in different populations of data. Thus the “customers” of a New York Sales Manager are customers in New York, while the “customers” of a French Sales Manager will be customers living in France.

[0093] Each group of users has a specific vocabulary and hence a specific universe. Thus, universes are independent of one another, and the users of one universe do not need to know of the existence of universes created for other users.

[0094] The Query Engine features data access control at the Universe level. A particular user can only access authorized Universes.

[0095] The creation and grant administration of Universes is carried out by a person termed the Manager. The Manager uses the Query Engine Manager Module, a superset of the Query Engine User Module.

[0096] A Universe consists principally of:

[0097] Classes. Logical sets of Objects. (visible to users)

[0098] Business Objects. Words that can be used in the Universe. (visible to users)

[0099] Joins. Relational synchronization between tables (not visible to users).

[0100] Contexts. Subsets of the list of joins (not visible to users).

[0101] The Manager Module provides a user-friendly interface to define these components.

[0102] Objects

[0103] A Business Object is a basic term of the users vocabulary.

[0104] An object is a tabular data representation.

[0105] An object is made of a single column:

[0106] a header: the header is the name of the object

[0107] several rows of data

[0108] the Object ITEMS makes reference to an illustrative list of items sold by the company, as illustrated in Chart A. CHART A ITEMS FERRARI MASERATI PEUGEOT CHEVROLET FORD

[0109] This Object is equivalent to an attribute in the relation database.

[0110] Its Query Engine definition is: Name : ITEMS Select : items.item_name Where :

[0111] The Object EXPENSIVE ITEMS makes reference to a list of expensive items sold by the company, as shown in Chart B. CHART B EXPENSIVE ITEMS FERRARI MASERATI

[0112] This object is equivalent to an attribute in the relation database with some restrictions.

[0113] Its Query Engine definition is: Name : EXPENSIVE ITEMS Select : items.item_name Where : items.price > 100000

[0114] The Object CUSTOMER makes reference to the list of known customers, as shown in Chart C. CHART C CUSTOMER Bernie Left 434-44-33 Denis Right 455-65-55 Chris Lab 453-34-34 Phil Boy 343-34-44 Alex Dawn 233-33-22

[0115] This Object in Chart C is the concatenation of three attributes in the relational database: First Name, Name and Telephone Number. Its Query Engine definition is: Name : CUSTOMERS Select : customers.cust_firstname, cust.cust_lastname, cust.phone Where :

[0116] The Object QUANTITY SOLD is information that is meaningful to any employee of the company, as shown in Chart D. CHART D QUANTITY SOLD 2342

[0117] This Object in Chart D is a calculation made on one attribute. In this particular example, this is the sum of the quantity sold for all products.

[0118] The Object SALES REVENUE is a typical sales executive term. This is information that allows him to measure his work, as shown in Chart E, below. CHART E SALES REVENUE 234,242,675.99

[0119] This Object in Chart E is a calculation made on several attributes accessible in the relational database. These attributes are present in several tables (relation).

[0120] Its Query Engine definition is: Name : SALES REVENUE Select : sum(items.price*order_items.qty) Where :

[0121] As will be seen later in the section “Query on Business Objects”, these objects do not have fixed data attached to them. The data, i.e., the content of the rows of the column can change according to the query in which the object is used: the meaning of the object (its “semantics”) is dynamic.

[0122] Classes

[0123] Classes are logical groups of Objects. They are a way for end-users to find an object in a universe more easily.

[0124] The class ORDERS can include of all the objects related to an order, as shown in Chart F. CHART F ORDERS DATE OF ORDER AMOUNT ITEMS ITEM NET PRICE

[0125] Joins

[0126] A join is an equation that links two tables. In the relational database theory, it usually corresponds to the primary key of a table and the foreign key of another.

[0127] In SQL language, to retrieve data coming from two tables, a user has to explicitly define the join existing between the two tables.

[0128] the table CUSTOMERS includes columns like cust_name, cust_address, and also a country identifier cust_country_id.

[0129] the table COUNTRIES includes the columns country_id and country_name.

[0130] To create a query asking for the name of the customers and the countries, the user of SQL will have to specify the following join:

customers.cust_country_id=countries.country_id.

[0131] In the Query Engine, instead of letting the end-user define the joins for each query, which is a complex and non-natural task, the Manager defines the list of all the potential joins between the tables involved in a Universe.

[0132] It is then the task of the Query Engine to automatically determine the proper joins to use in a query (see section below on Query on Business Objects).

[0133] The list of Joins is an important part of the Universe definition.

[0134] Contexts

[0135] A context is a part of the list of joins. The use of a particular context for a query gives a specific meaning to this query and therefore to the objects that compose that query.

[0136] The definition of context is necessary when the list of joins includes loops, therefore includes multiple paths to go from one table to another. A context usually does not include multiple paths.

[0137] For that particular database, the list of joins includes two paths from customers and items.

[0138] The Manager defines two contexts:

[0139] The context of Orders:

[0140] The choice of a context, either manually by the user or automatically by the Query Engine will cancel the ambiguity and give a meaning to the query.

[0141] The section Query on Business Objects describes how a context is chosen.

[0142] The Query on Business Objects

[0143] The three components of a query.

[0144] In the Query Engine, an end-user only has to define three elements:

[0145] the objects to retrieve.

[0146] the conditions that the results must match.

[0147] the order in which the results must be sorted.

[0148] All these elements are defined with the use of Objects.

[0149] Associating Objects Together

[0150] Every Business Object has a general meaning and can be used “as it is” to compose a query as far as it can be considered as a column header.

[0151] The association of two Business Objects will produce an answer made of two columns which contents depend on the association.

[0152] For example, the association of the CUSTOMER Objects and the QUANTITY SOLD returns a two column result where can be read the quantity sold by customer, as shown in Chart G. CHART G CUSTOMER QUANTITY SOLD Bernie Left 434-44-33 350 Denis Right 455-65-55 560 Chris Lab 453-34-34 660 Phil Boy 343-34-44 560 Alex Dawn 233-33-22 213

[0153] Now one can use the same Objects QUANTITY SOLD associated with the Objects ITEM, and its meaning will be different, as shown in Chart H. CHART H ITEM QUANTITY SOLD FERRARI  10 MASERATI  200 PEUGEOT   5 CHEVROLET  120 FORD 2008

[0154] Defining Conditions

[0155] The definition of condition is done in two steps:

[0156] First, the user defines the elementary conditions, then he defines the logic linking the different elementary conditions.

[0157] As elementary condition is composed of an object, an operator and operand as shown in Chart I: CHART I Object Operator Operand ITEM Equals FERRARI

[0158] The operand can be a constant, a variable, an object or even a query.

[0159] The logic is the definition of a logical AND and OR as well as the definition of the parenthesis between these conditions. The Query Engine uses a visual representation of the logic which prevents the user from defining parenthesis. The end-user defines groups of conditions by indenting them.

[0160] As an example:

[0161] IF ITEM Equals FERRARI

[0162] AND CITY Equals PARIS

[0163] OR ITEM Equals 2CV

[0164] AND CITY Equals ROMA

[0165] is translated in SQL by

[0166] (item=‘FERRARI’ and customer.city=‘PARIS’)

[0167] or (item=‘2CV’ and customer.city=‘ROMA’)

[0168] Defining Sorts

[0169] The definition of the sort is done by choosing an object and the sorting order, as shown in Chart J. CHART J Object Order PRICE Desc

[0170] The Query Engine

[0171] Once the user has defined a Query using the Query on Business Objects Interface, The Query Engine generates the SQL query and transmits it to the relational kernel. The translation of the Query on Business Objects definition to the SQL statement is carried out by an engine called the Query Engine, as previously described. The rule databases are the Query on Business Objects Query and the Universe (as a set of definitions), the deduction is the generated SQL. The Query Engine uses full-wired rule database.

[0172] The strategy used by the Query Engine is explained below. It is a functional description; the technical implementation of the strategy in commercial products can differ slightly, using algorithms that better suit the internal data structures of the particular product.

[0173] 1. The SELECT Clause

[0174] The first step of the automatic SQL generation is the generation of the Select clause.

[0175] The QE (Query Engine) replaces the Business Objects select in the Result Objects window by their SQL equivalent.

[0176] Each Business Object has an SQL equivalence, which can be any SQL Select clause compatible string. The concatenation of these strings, separated by commas, is thus a Select compatible string.

[0177] 2. The Initial List of Tables

[0178] At the first step, the QE has already deducted a list of tables involved in the query. They directly come from the definition of the Objects selected in the Result Objects window. The QE analyzes the definition of the Objects used in the Conditions window, as well as those in the Sorts window in order to complement the List of Tables involved in the query. This list is called the Initial List of Tables.

[0179] 3. The Final List of Tables

[0180] The objective of this step is to determine a single path connecting all the tables in the Initial List of Tables using the List of Joins of the current Universe. In searching for such a path, the QE may require the inclusion of tables not yet part of the Initial List of Tables. The union of these new tables and the Initial List of Tables is called the Final List of Tables.

[0181] In order to find the path, the QE determines each path linking 2 tables from the Initial List of Tables by searching through the List of Joins. For each couple of tables, the operations returns 0, 1 or several paths.

[0182] If one operation returns 0, it implies that the query is invalid (it would generate a cartesian product).

[0183] If all operations return 1 path, the Final List of Tables is the union of all the tables involved in the joins of the different paths and the tables in the Initial List of Tables.

[0184] If one operation returns several paths, it implies that a choice must be made. This is done through the use of Contexts. The QE first checks for the existence of Contexts. If none are defined for the current Universe, the Final List of Tables is the union of all the tables involved in the joins of the different paths.

[0185] If some contexts have been defined, the QE will select only the Contexts that are applicable to the current query. A context is applicable to a given query if its list of joins involve at least all the tables of the Initial List of Tables.

[0186] If only one context is applicable to the current query, the QE uses the Context's list of joins to deduct the Final List of Tables. If several Contexts are applicable, the QE proposes the different contexts to the user. The user chooses the Context he wants and the QE deducts the Final List of Tables from the use of this Context.

[0187] As an example:

[0188] In the example given above in the section “Contexts”, if the end-user associates the objects in Chart K, below: CHART K CUSTOMER ITEMS

[0189] the Query Engine cannot choose between the Loan context or the Order context. The user will be asked to choose “Loans or Order”.

[0190] If the user chooses Orders, then the query will mean “the items ordered by customer”.

[0191] If the user chooses Loans, the query will mean “the items loaned by customer”.

[0192] 4. The From Clause

[0193] The QE builds the From Clause by listing all the tables of the Final List of Tables.

[0194] 5. The Where Clause

[0195] a) The Generation of Joins

[0196] The first part of the where clause is the list of joins. They are all the joins from the selected Context (or the global list of joins if no Context was used) that involve the tables of the Final List of Tables. All these joins are linked with an AND.

[0197] b) The Conditions on Objects

[0198] The QE builds the conditions included in the definition of the objects mentioned in the Result Objects window.

[0199] c) The Simple Conditions.

[0200] The QE builds the conditions placed under the Objects in the Results Objects window by converting it in its SQL equivalent. This operation is not done if the Object has a group function in its SQL definition.

[0201] (d) The Translation of the Conditions Window

[0202] The QE translates the Objects and the operators used in the Condition window by their SQL equivalent. If an object used in this Window has a condition in its SQL definition, this condition is added.

[0203] 6. The Group By Clause

[0204] The Second step is the generation of the Group By clause.

[0205] The Query Engine builds a list of non-group function Objects by scanning the list of Objects involved in the Query (in the results or in the sort). Non-group function Objects are Objects with a SQL equivalent that does not make use of any relational group function (such as sum, count, and so on).

[0206] Once this list has been built, the “Group by” clause is generated using the concatenation of all of the SQL equivalents of the non-group function Objects present in the RESULT OBJECTS and SORTS Windows of the query definition.

[0207] In this particular example Sales Revenue is a Object containing a group function in its embedded SQL definition, Customer is not, thus the SQL equivalent of the Customer SQL Object is inserted in the Group by clause.

[0208] 7. The Having Clause

[0209] The QE generates the Having clause by translating the simple conditions placed on Objects in the Result Objects window into their SQL equivalent.

[0210] 8. The Order by Clause

[0211] The QE builds the Order by Clause by taking the sorts defined in the Sorts window and replacing them by their SQL equivalent.

[0212] Generation of Joins

[0213] One important part of the query generation is the construction of the path used to access data. This is important in order to assure reliable and correct results.

[0214] The Query Engine uses the list of joins to connect the tables involved in the query. This may require the opening of tables not explicitly mentioned in the Object definitions. For example, in the query above, the Orders table must be included for the query to run correctly.

[0215] The Query Engine then tests the set of joins for multiple paths. If several paths are found to link two tables involved in the query, it means a choice must be made. The Query Engine will try to make that choice automatically. If contexts have been previously defined by the Manager, each of them will be compared with the list of tables involved in the query. Usually there will only be one appropriate choice of Context (i.e. compatible with the list of tables), and it will thus be automatically chosen by the Query Engine.

[0216] As an example:

[0217] In the example given above in the chapter “Contexts”, if the end-user associates the objects set forth in Chart L: CHART L CUSTOMER ORDER DATE ITEM

[0218] the Query Engine will automatically eliminate the loan context since there is no path in that context to link the 3 tables involved in the above query (customers, orders, items).

[0219] If one of several contexts can be used, and the Where clause differs according to the Context chosen, the user is asked to choose between the various Contexts.

[0220] In each case a different SQL statement will be created.

[0221] If no context has been defined, the Query Engine will use all the available paths.

[0222] If no path can be found, the Query Engine warns the user that the generated query has no sense, and that the query implies unconnected relational data.

[0223] Translation of Conditions

[0224] Conditions can be of two different types:

[0225] Conditions on Group Functions

[0226] The SQL equivalence of these conditions is inserted into the Having clause of the Query.

[0227] Conditions on Non Group-Function

[0228] The SQL equivalence of these condition is inserted in the Where clause of the Query.

[0229] To determine the SQL equivalence of a condition, the Query Engine simply replaces the Object, the operator, and the operand by their SQL correspondence.

[0230] To determine the parenthesis of the conditions, the Query Engine is based on the indentations defined by the end-user (as described in the section above, “Defining Conditions”).

[0231] Translation of Sorts

[0232] The translation of sorts is straightforward since it needs no intelligent mechanism from the Query Engine. It just replaces the object by its SQL equivalence and places that in an ORDER BY clause.

DETAILED DESCRIPTION OF THE QUERY INTERFACE

[0233] Now that a detailed description of the overall aspects of the present invention have been described, what follows below will be a detailed description of illustrative examples of operation of the Query Interface, according to the present invention.

[0234] The description in conjunction with FIGS. 1-28 assume that a user has access to a relational database system through a client/server architecture as shown in FIG. 1-A including suitable PC type environment, and that the user is also “clicking” on a particular feature through use of a suitable mouse type configuration or the equivalent.

[0235] In the specific example of FIG. 1, a user clicks on the “Create element of the Query. FIG. 1 illustrates a user clicking on the Create Query option.

[0236] In FIG. 2, a user enters a Query Name, e.g., Q1.

[0237]FIG. 3 illustrates the Query on Business Objects Definition Screen. This technique is used to construct queries which allows an end-user to define a question using point-and-click methods, without having to learn any language. A query can be divided into three different parts:

[0238] The result Objects: the information required by the user;

[0239] Conditions: the restrictions to be used on the data (these restrictions can be on any information contained in the database, not only the Objects of the result;

[0240] Sorts: the sorting of the returned data.

[0241] The Query On Business Objects Interface of FIG. 3 is a ‘question frame’ for users. It provides users with three empty windows, as shown in FIG. 3. Each window is used to specify a part of the query:

[0242] In the first window (RESULT OBJECTS), the user places Business Object in the empty cells, in order to construct an linear association of Business Objects. This gathering of the Business Objects gives a specific sense to each of the Objects used, and a sense to the query as a whole. It is important to note that the meaning of the line of selected Business Objects does not change if read from left to right or from right to left. This technology allows users to specify the semantics of every Business object merely by associating the Objects together.

[0243] The second window (CONDITIONS) of FIG. 3 is used to specify a list of conditions on any of the available Objects. Each clause of the condition consists of an Object restricted by a operator. The window provides graphical facilities to specify the logical operators and precedences between clauses.

[0244]FIG. 4 illustrates the Business Objects Selector window. This window is activated when the user clicks on one of the empty cells of the Result Objects window. This list is contained in a resizable windows and contains a list of all the Business Objects of the current Universe.

[0245] The first section of this list is a list of Classes. Class names begin with an arrow. If the user clicks on a Class name, a second window opens containing the list of Objects contained in the class (recall that Classes are logically grouped sets of Objects)

[0246] The second section of the Selection window of FIG. 4 in an alphabetically sorted list of all the available Business Objects.

[0247] Each Object can have an associated help screen defined by the Manager. The user has access to these help screens for further information about each object.

[0248] This interface has two major advantages:

[0249] The list of Objects is automatically opened in order to propose the information entities (or “words”) that are available. Thus, the end-users do not need to have prior knowledge of the information contained in the database. The various Business Objects available are presented to them.

[0250] A User can select a Business Objects in two different ways; either directly from the initial alphabetical list of the Objects, or by first choosing a Class, then selecting an Object within that Class.

[0251]FIG. 5 displays the Customers class windows containing all the Objects related to a customer which are self-explanatory.

[0252]FIG. 6 illustrates a specific help window. On each Object users can access a specific help window

[0253] In FIG. 7, the Customer Object which has been selected is now present the first cell of the Result Objects window.

[0254] In FIG. 8, clicking on the next blank cell opens the “List of Objects” window.

[0255] In FIG. 9, clicking on the Misc class opens the Misc class windows.

[0256] In FIG. 10, a specific help can be consulted about the Sales Revenue Object. For the example of FIG. 10, the Sales Revenue is a sum in dollars—it can be applied to customers, items, months, and so on.

[0257] In FIG. 11, two objects have been selected. Their linear association gives a meaning to each of them, the desired information is “the Sales revenue by customer”.

[0258]FIG. 12 shows that it is possible to add some conditions to this query by clicking on the Condition Window.

[0259]FIG. 13 shows that clicking on a blank line in the “Conditions” window opens the “List of Objects” window.

[0260]FIG. 14 shows putting a condition on the City Object.

[0261]FIG. 15 shows the Query Engine providing all the logical operations used by SQL, in this particular example selects the “Equal to” operator.

[0262] In FIG. 16, objects can be compared to several kind of operator. The “constant” type is selected here.

[0263] In FIG. 17, the condition is “City” equals to “Malibu”.

[0264] In FIG. 18, the cursor is moved to the Sorts window.

[0265] In FIG. 19, clicking on the “Sorts” window will active it.

[0266] In FIG. 20, as far as sorting can be done on Objects, clicking in an empty cell of the “Sorts” windows opens the “List of Objects” windows. For example the user can introduce a sort on the “Sales Revenue”.

[0267]FIG. 21 shows that it is possible to sort in ascending or descending order.

[0268]FIG. 22 shows the final screen of the query definition.

[0269] In FIG. 23, the Query Engine generates the SQL equivalent to the Query on Business Objects definition and prompts the user to execute the query. The connection to the remote database will then occur.

[0270] In FIG. 24, the Query Engine displays the result. The answer is a tabular data representation.

[0271]FIG. 25 shows that users can check the SQL command generated automatically by the Query Engine.

[0272]FIG. 26 shows another query definition screen. The Sales Revenue Object is associated with another Object called Item Name. The meaning of this object is different, while the Sales Revenue Object is the same.

[0273]FIG. 27 shows the display of the answer of the query “Sales revenue by Item”.

[0274]FIG. 28 shows that the SQL command generated by the Query Engine to translate the question “Sales revenues per items”.

[0275]FIG. 29 illustrates a Universe of Objects with total or partial representation of a database for a particular group of users or for a particular function. Such Universe of Objects could include personnel (employee salary, commission), commercial (customer sales revenue, item, item price and order date), and inventory (warehouses, current inventory, out-of-stock items).

[0276]FIGS. 30 and 31 illustrate Business Objects as compared to the SQL equivalent. In FIG. 30 the customer object is illustrated, and in FIG. 31 the sales revenue object is illustrated with its corresponding SQL equivalent.

[0277] The access technology of the present invention utilizing a Query on Business Objects, provides for manipulation of objects with semantically dynamic aspects and a natural query structure of objects, conditions and sorts. Hence, the user does not need to know the SQL language and does not need to know the structure of the database in terms of column and table names, joins, group functions and the like.

[0278]FIGS. 32 and 33 illustrate the Query on Business Objects aspects of being semantically dynamic. FIG. 32 illustrates the query sales revenue by customer as contrasted with the SQL equivalent. FIG. 33 illustrates the query sales revenue by item, again compared with the SQL equivalent. The Query Engine of the present invention allows the interrogation of more than simple objects which includes the combination of fields, calculations of fields, and aggregates (sum, average, and the like). The Query Engine allows complex conditions on complex objects with complex combinations (AND, OR, and the like). This provides the end user with the power of an SQL language, however, the Query on Business Objects generates all the elements of the SQL query using the Query Engine.

[0279]FIG. 34 illustrates the RDBMS access modes which show the total independence from syntax and structure from the Query Engine of the present invention, whereas the syntax/structure and structure aspects of prior art approaches are also shown.

[0280] The present invention provides for local data analysis as shown in FIG. 35 which provides horizontal and vertical browsing, report generation in terms of tables, labels, form letters; graph generation such as bar charts, 2-D, 3-D; pie charts and sets of points; and exploitation by standard packages such as spreadsheets, wordprocessors, and databases.

[0281]FIG. 36 illustrates the user friendly interface aspects of the present invention, which provides easy to use interface that conforms to PC standards, interactions possible with a mouse, and the like.

[0282]FIGS. 37 and 38 illustrate distribution of universes and objects (FIG. 37) and distributions of queries, reports, graphs and the like (FIG. 38) according to the present invention.

[0283] A relational database access system and method has been shown and described. The present invention provides a representation of a relational database by a Universe of Objects which comprises classes, objects, joins, and contexts.

[0284] A Business Object has been defined as a name, some elements of a Select cause, and some elements of a Where clause.

[0285] The dynamic semantics of an Object are such that the data behind such an Object (i.e., its meaning), differs according to other Objects that are part of a Query.

[0286] The Query Technique of the present invention allows a user to implicitly define the semantics of the Object in a Query where the user associate the Objects together.

[0287] A context has been defined as a set of joins without loops. The choice of a context manually by a user or automatically by the present invention determines the meaning of the Objects in a Query in case of ambiguity.

[0288] The automatic generation of joins by the present invention is such that it generates all the elements of an SQL statement automatically, which defines all the joins and the temporary tables needed to create a correct statement. If there is a potential ambiguity in the choice of the joins, the present invention chooses a context (a consistent set of joins) or proposes authorized context to the user.

[0289] The present invention hence allows users to work with their own familiar business words and terminology and allows users to access to relational databases without being required to possess any knowledge of the structure of the database or the specific names of its physical elements.

[0290] Also, the present invention insulates users from having to know the data access language, such as SQL.

[0291] The present invention further allows the creation of simple or complex Business Objects that relate to the data and database structures.

[0292] The present invention allows the dynamic manipulation of those Objects in an ad hoc manner, and provides a level of safety and data integrity by assuring that the correct data will be accessed and displayed.

[0293] The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and it should be understood that many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. The present invention has been described in a relational database environment. However, the present invention has applications to other databases such as network, hierarchical, or object oriented databases. Therefore, it is intended that the scope of the invention be defined by the Claims appended hereto and their equivalents. 

What is claimed is:
 1. A relational database access system comprising means for generating a user query wherein said user query represents a query on one or more business objects, query engine means for translating said user query into a structured query language (SQL) equivalent statement, and means responsive to said SQL language equivalent statement for accessing said relational database.
 2. The system as in claim 1 wherein said query on business objects include the specific objects to be retrieved, the conditions that the results must match and the order in which the results must be sorted.
 3. The system as in claim 2 including a predefined business object universe representative of said database and including one or more predefined business objects to provide semantically dynamic tabular representation of data from said database.
 4. The system as in claim 3 wherein said universe includes classes representative of logical sets of objects; said business objects; joins which are representative of relational synchronization between tables; and contexts which represent subsets of the list of joins.
 5. The system as in claim 4 wherein an object represents a single column including a header that is the name of the object and one or more rows of data.
 6. The system as in claim 5 wherein said query engine means includes means for generating a select clause.
 7. The system as in claim 6 wherein said query engine means includes means for generating a group by clause.
 8. The system as in claim 7 wherein said query engine means includes means for generating joins representative of a path used to access data.
 9. The system as in claim 8 wherein said query engine means includes means for testing the set of joins for multiple paths.
 10. The system as in claim 9 wherein said query engine means includes means for selecting between multiple paths.
 11. The system as in claim 10 wherein said query engine means includes means for generating a query on business objects definition screen, which allows a user to define a query wherein the query includes a result object representative of information required by the user; conditions, which represent restrictions to be used on the data; and sorts, which represent the sorting of the returned data.
 12. The system as in claim 11 wherein said query engine means include means for providing a result objects window to permit a user to construct a linear association of business objects.
 13. The system as in claim 12 wherein said query engine means include means for providing a conditions window to permit a user to specify a list of conditions on any of the available objects.
 14. The system as in claim 13 wherein said query engine means includes means for providing a sorts window to permit a user to introduce a sort on a list of objects.
 15. The system as in claim 14 wherein said query engine means include means for generating a business object selector window which provides a list of business objects of the current universe.
 16. The system as in claim 15 including means for generating an initial list of tables involved in said query.
 17. The system as in claim 16 including means for generating a final list of tables so as to determine a single path connecting all the tables in said initial list of tables using a list of joins of the current universe.
 18. The system as in claim 17 including means for generating a FROM clause by listing all the tables of said final list of tables.
 19. The system as in claim 18 including means for generating a WHERE clause including the list of joins from the selected context that involved the tables of said final list of tables; building the conditions on objects from said result objects windows; building the conditions placed under the objects in the results objects window by converting it to its SQL equivalent statement; and translating the objects and the operators used in the conditions window by their SQL equivalent statement.
 20. The system as in claim 19 including means for generating a group by clause, including means for scanning the list of objects involved in the query on business objects and using the concatenation of all the SQL equivalent statements present in the result objects and sort windows.
 21. The system as in claim 20 including means for generating a having clause by translating the simple conditions placed on objects in the result objects windows into their SQL equivalent statement.
 22. The system as in claim 21 including means for generating an order by clause by taking the sorts defined in the sorts window and replacing them by their SQL equivalent statement.
 23. In a relational database access system including a predefined business object universe representative of said database and including one or more predefined business objects to provide semantically dynamic tabular representation of data from said database and wherein a user generates a user query representing a query on one or more of said business objects, the apparatus comprising query engine means for translating said user query into a structured query language (SQL) equivalent statement, and means responsive to said SQL language equivalent statement for accessing said relational database.
 24. In a relational database access system the method comprising the steps of generating a user query wherein said user query represents a query on one or more business objects, translating said user query into a structured query language (SQL) equivalent statement, said SQL language equivalent statement accessing said relational database.
 25. The method as in claim 24 wherein said query on business objects include the specific objects to be retrieved, the conditions that the results must match and the order in which the results must be sorted.
 26. The method as in claim 25 including a predefined business object universe representative of said database and including one or more predefined business objects to provide semantically dynamic tabular representation of data from said database.
 27. A database access system comprising means for generating a user query wherein said user query represents a query on one or more business objects, query engine means for translating said user query into a query language equivalent statement for said database, and means responsive to said query language equivalent statement for accessing said database.
 28. The system as in claim 27 including a predefined business object universe representative of said database and including one or more predefined business objects to provide semantically dynamic tabular representation of data from said database. 